<!DOCTYPE html>
<html lang="en" ng-app="app">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body ng-controller="Ctrl">
<!-- 把数组按指定的分隔符(ng-list, 默认ng-list=", ")组成字符串. 相当于 arr.join(..) -->
<input type="text" ng-list="," ng-model="names"/>
<span ng-bind-template="names={{names}}"></span>
<script src="../../../../../../../bower_components/angular/angular.js"></script>
<script>
    var app = angular.module('app', []);
    app.controller('Ctrl', function ($scope) {
        $scope.names = ['1', 2, 3];
    });
</script>
</body>
</html>